package Controller.StateImpl;

import Controller.State;
import View.PurchaseFrame;

public class PurchaseState implements State {
    private static PurchaseState instance;

    private PurchaseState() {}

    public static PurchaseState getInstance() {
        if (instance == null) {
            instance = new PurchaseState();
        }
        return instance;
    }

    @Override
    public void doAction() {
        PurchaseFrame.getInstance().display();//显示加购窗口
    }
}
